﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;
using SMARTMobile.WinPhone.Models;
using SMARTMobile.WinPhone;

namespace SMARTMobile.Models.UI
{
    public class Category : BaseModel<Category>
    {
        private string _name;
        private bool _isCategorySelected;
        private ImageSource _icon;
        
        public Category()
        {
            SubCategories = new ObservableCollection<Category>();
        }


        public string Name
        {
            get { return _name; }
            set
            {
                _name = value;
                RaisePropertyChanged(x=>x.Name);
            }
        }

        public bool IsCategorySelected
        {
            get { return _isCategorySelected; }
            set
            {
                _isCategorySelected = value;
                RaisePropertyChanged(x => x.IsCategorySelected);
            }
        }

        public ImageSource Icon
        {
            get { return _icon; }
            set
            {
                _icon = value;
                RaisePropertyChanged(x => x.Icon);
            }
        }

        public ICommandRoute PrivateCommand { get; set; }

        public ObservableCollection<Category> SubCategories { get; set; }
    }
}
